# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-lynx
pkgver=0_git20220120
pkgrel=0
_commit="fc1288ccc0a4c6c07d690e0f0f5e883b43c20ba4"
pkgdesc="standalone port of Mednafen Lynx to libretro"
url="https://github.com/libretro/beetle-lynx-libretro"
arch="all"
license="GPL-2.0-only AND Zlib"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-lynx-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-lynx-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_lynx_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_lynx_libretro.so
}

sha512sums="
bbda529d5a7be7c16f705e293834d3b3a670b1494d7868c2b2d600e1a7a9c786e5f9cfa00971f2c7271aa4391a9713a256a0c0440ec360fd469751762cff5aba  libretro-beetle-lynx-fc1288ccc0a4c6c07d690e0f0f5e883b43c20ba4.tar.gz
"
